(x_alloc_nearest_color_1): New function.
authorGerd Moellmann <gerd@gnu.org>
Mon, 2 Apr 2001 15:49:25 +0000 (15:49 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 2 Apr 2001 15:49:25 +0000 (15:49 +0000)
commitc8e17695cf73e00c6ade83015555e51cdd3fef19
tree54b0ee438d14c00c39a350e6dbb2937af243a8af
parentc5cd587d3a2ed9002eb6273a7a46d8f9ada280ea
(x_alloc_nearest_color_1): New function.
(x_alloc_nearest_color): Use it.
(x_color_cells): Take a Display as argument, instead of a frame.
(string_to_pixel_args, cvt_string_to_pixel_value): New variables.
(cvt_string_to_pixel, cvt_pixel_dtor): New functions.
(x_initialize): Register cvt_string_to_pixel as resource converter
string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
src/xterm.c